<div id="files">

    <h2><?php __('Download section');?></h2>
    <table cellpadding="5" cellspacing="5" width="100%">
        <tr>
            <td></td>
            <td width="15%"></td>
            <td width="15%"></td>
        </tr>
        <tr>
            <td colspan="3"><? echo $pagination->create(null,'files'); ?></td>
        </tr>
        <tr>
            <th><?php echo $paginator->sort(__('Name',true),'file');?></th>
            <th><? echo $paginator->sort(__('Size',true),'size'); ?></th>
            <th><?php echo $paginator->sort(__('Downloaded',true),'downloaded');?></th>
        </tr>
        <?php
        $i = 0;
        foreach ($downloads as $file):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
            ?>
        <tr<?php echo $class;?>>
            <td>
                    <?php echo $html->link($file['Download']['summary'],array('action'=>'view',$file['Download']['file'])); ?>
            </td>
            <td>
                    <? echo $number->toReadableSize($file['Download']['size']); ?>
            </td>
            <td>
                    <? echo $file['Download']['downloaded']; ?>
            </td>
        </tr>
        <?php endforeach; ?>
        <tr>
            <td colspan="3"><? echo $pagination->create(null,'files'); ?></td>
        </tr>
    </table>
</div>